correct header file list in GPSBabel.pro, and a warning fix. (#203)
authortsteven4 <tsteven4@users.noreply.github.com>
Thu, 21 Jun 2018 20:13:39 +0000 (14:13 -0600)
committerGitHub <noreply@github.com>
Thu, 21 Jun 2018 20:13:39 +0000 (14:13 -0600)
C4146: unary minus operator applied to unsigned type, result still unsigned

GPSBabel.pro
energympro.cc

index e387c4aa26e23b5a8f1e5fc4fb82d60a0279894a..dc91ce31318bcc7acce431d68c7fae3a3d2e5615 100644 (file)
@@ -120,13 +120,13 @@ HEADERS =  \
        xmlgeneric.h \
        zlib/crc32.h \
        zlib/deflate.h \
+       zlib/gzguts.h \
        zlib/inffast.h \
        zlib/inffixed.h \
        zlib/inflate.h \
        zlib/inftrees.h \
        zlib/trees.h \
        zlib/zconf.h \
-       zlib/zconf.in.h \
        zlib/zlib.h \
        zlib/zutil.h \
        src/core/xmlstreamwriter.h \
index b70cccdb5ba0416092ffc4c6ed793ba6fa2abc00..338fb4376cfbe18ad47ac60538b7020e3805eadd 100644 (file)
@@ -240,7 +240,7 @@ track_read()
   }
 
   gbfseek(file_in, 0L, SEEK_END);
-  gbfseek(file_in, (int32_t) -(sizeof(tw_workout)), SEEK_CUR);
+  gbfseek(file_in, -(int32_t)(sizeof(tw_workout)), SEEK_CUR);
   tw_workout workout;
   workout.dateStart.Year = gbfgetc(file_in);
   workout.dateStart.Month = gbfgetc(file_in);